﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Spenta.StreetCare.Core.Models.Report>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Delete
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Delete</h2>

    <h3>Are you sure you want to delete this?</h3>
    <fieldset>
        <legend>Fields</legend>
                
        <div class="display-label">ReportTitle</div>
        <div class="display-field"><%: Model.ReportTitle %></div>
        
        <div class="display-label">ReportWhen</div>
        <div class="display-field"><%: String.Format("{0:dd/MM/yyyy}", Model.ReportWhen) %></div>
        
        <div class="display-label">ReportBy</div>
        <div class="display-field"><%: Model.User.UserNickname %></div>
        
        <div class="display-label">ReportStatusID</div>
        <div class="display-field"><%: Model.Status.StatusTitle %></div>
        
        <div class="display-label">ReportStatusWhen</div>
        <div class="display-field"><%: String.Format("{0:dd/MM/yyyy}", Model.ReportStatusWhen)%></div>
        
        <div class="display-label">ReportCategoryID</div>
        <div class="display-field"><%: Model.Category.CategoryTitle %></div>
        
        <div class="display-label">ReportLatitude</div>
        <div class="display-field"><%: String.Format("{0:F}", Model.ReportLatitude) %></div>
        
        <div class="display-label">ReportLongitude</div>
        <div class="display-field"><%: String.Format("{0:F}", Model.ReportLongitude) %></div>
        
        <div class="display-label">ReportLocation</div>
        <div class="display-field"><%: Model.ReportLocation %></div>
        
        <div class="display-label">ReportImageUrl</div>
        <div class="display-field">
        <% if (!string.IsNullOrEmpty(Model.ReportImageUrl)){%>
            <img alt="Image uploaded by the citizen" src="/ClientBin<%:Model.ReportImageUrl%>" />
        <%} else {%>
            No image found
        <%}%>
        </div>
        
        <div class="display-label">ReportFixedImageUrl</div>
        <div class="display-field">
        <% if (!string.IsNullOrEmpty(Model.ReportFixedImageUrl)) {%>
            <img alt="Image uploaded by the administrator" src="/ClientBin<%:Model.ReportFixedImageUrl%>" />
        <%} else {%>
            No image found
        <%}%>
        </div>
        
        <div class="display-label">ReportNotificationDetails</div>
        <div class="display-field"><%: Model.ReportNotificationDetails %></div>
                
    </fieldset>
    <% using (Html.BeginForm()) { %>
        <p>
		    <input type="submit" value="Delete" /> |
		    <%: Html.ActionLink("Back to List", "Index") %>
        </p>
    <% } %>

</asp:Content>

